package com.sunnyweather.android.logic.network

import com.sunnyweather.android.SunnyWeatherApplication
import com.sunnyweather.android.logic.model.App
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query
//定义PlaceService接口查询城市信息，Retrofit会将服务器返回的JSON数据自动解析成App对象
interface PlaceService {

    @GET("v2/city/lookup?key=${SunnyWeatherApplication.KEY}")
    fun searchPlaces(@Query("location") location: String): Call<App>

}